Alexandre Emsenhuber [Thu, 15 May 2008 19:48:12 +0000 (19:48 +0000)]
E_STRICT
Brion Vibber [Thu, 15 May 2008 19:42:55 +0000 (19:42 +0000)]
Revert r34877 -- duplicates wfExpandUrl()
Bryan Tong Minh [Thu, 15 May 2008 19:17:21 +0000 (19:17 +0000)]
Do some refactoring on ImagePage. Shuffled the links section; Use Title::getRedirectsHere; Move duplicate detection to its own function.
Brion Vibber [Thu, 15 May 2008 18:38:39 +0000 (18:38 +0000)]
Revert r34849 -- please stop randomly changing formatted messages into plaintext, especially without checking usage.
Bryan Tong Minh [Thu, 15 May 2008 18:33:12 +0000 (18:33 +0000)]
Force output of a full URL in Special:Filepath and ApiQueryImageInfo in case the wiki images are not configured to full urls.
Raimond Spekking [Thu, 15 May 2008 18:14:15 +0000 (18:14 +0000)]
Allow wikisyntax in message.
Probably a regression from r33495. In the past HTML was allowed :-/
Huji [Thu, 15 May 2008 17:13:12 +0000 (17:13 +0000)]
For the sake of documentation
Aryeh Gregor [Thu, 15 May 2008 17:04:34 +0000 (17:04 +0000)]
(bug 13693) Categories sometimes claim to have a negative number of members. Just recount them in this case; they *should* have relatively few members, so it should be fast. Note that even a worst-case scenario (recount of enwiki Living people) takes only a few seconds on the cluster, and it seems incredibly unlikely that that would occur.
Brion Vibber [Thu, 15 May 2008 15:38:51 +0000 (15:38 +0000)]
Kill r34826's unnecessary boolval() per yesterday's IRC discussion (thought vasilievv was going to revert himself, but guess not :D)
Huji [Thu, 15 May 2008 15:17:23 +0000 (15:17 +0000)]
r34676 also affected {{CURRENTVERSION}} : It used to return plain text, like the other magic words, but with r34676 it returned an external link, so [[Special:Version|{{CURRENTVERSION}}]] wouldn't work. With this revision, CURRENTVERSION will work like previously.
Rotem Liss [Thu, 15 May 2008 15:03:47 +0000 (15:03 +0000)]
Fixes.
Huji [Thu, 15 May 2008 14:53:20 +0000 (14:53 +0000)]
* Adding/updating Persian translations
Aaron Schulz [Thu, 15 May 2008 14:53:02 +0000 (14:53 +0000)]
Add $flags
Raimond Spekking [Thu, 15 May 2008 07:47:44 +0000 (07:47 +0000)]
Use headings per section, improves navigation by screenreaders too.
Raimond Spekking [Thu, 15 May 2008 07:16:22 +0000 (07:16 +0000)]
Add a few CSS classes for styling purposes
Kwan Ting Chan [Thu, 15 May 2008 03:49:51 +0000 (03:49 +0000)]
Fix error where user blocked from email can still send email to another user.
Brion Vibber [Wed, 14 May 2008 23:42:15 +0000 (23:42 +0000)]
Trigger load of user data in User::getBlockStatus() before we
start changing member variables.
Otherwise something ends up stomping on $this->mBlockedby when
things get lazy-loaded later, causing false positive block hits
due to -1 !== 0. Probably session-related... Nothing should be
overwriting mBlockedby, surely?
This was giving me blank "you are blocked" messages.... but only
when doing *section edits on SSL*, not regular edits, nor section
edits on non-SSL wikipedia. Weeeeeeird
Aaron Schulz [Wed, 14 May 2008 23:25:54 +0000 (23:25 +0000)]
Offset il_from
Aaron Schulz [Wed, 14 May 2008 23:03:39 +0000 (23:03 +0000)]
Actually declare $wgLang
Brion Vibber [Wed, 14 May 2008 21:56:30 +0000 (21:56 +0000)]
revert r34818 -- bad
Victor Vasiliev [Wed, 14 May 2008 19:12:00 +0000 (19:12 +0000)]
* Move $var ? true : false check to boolval function
* Introduce $wgLogActionsHandlers
Brion Vibber [Wed, 14 May 2008 18:28:52 +0000 (18:28 +0000)]
Reverting 34794 for the moment; some bad whitespace, and seems to add bunches of stuff without obvious reason yet.
Alexandre Emsenhuber [Wed, 14 May 2008 18:06:48 +0000 (18:06 +0000)]
(bug 12145) Kazakh message updates
Raimond Spekking [Wed, 14 May 2008 17:58:49 +0000 (17:58 +0000)]
Localisation updates German
Greg Sabino Mullane [Wed, 14 May 2008 17:44:05 +0000 (17:44 +0000)]
Don't attempt to store the page_id in recentchanges table if we are deleting.
Bryan Tong Minh [Wed, 14 May 2008 17:29:38 +0000 (17:29 +0000)]
* Create ForeignDBFile objects from ForeignDBRepo::findBySha1
* Add foreign duplicates to ImagePage
Rotem Liss [Wed, 14 May 2008 16:31:51 +0000 (16:31 +0000)]
Update.
Bryan Tong Minh [Wed, 14 May 2008 16:19:48 +0000 (16:19 +0000)]
Forgot to commit the message associated with r34807.
Brion Vibber [Wed, 14 May 2008 16:09:18 +0000 (16:09 +0000)]
* (bug 14082) Fix for complex text input vs AJAX suggestions on some browsers
The mwsuggest code was doing a blur(); focus() on the text field the first time a key was pressed, as a workaround for a problem with Firefox when the field was focused at page load time, as on Special:Search with no input given.
Disabling of the browser's autosuggestion wasn't taking effect in Firefox without this workaround; however the extra blur() and focus() in some cases interrupted complex text input methods (for instance for Korean and Japanese), making it difficult to type in text. [Easily reproduceable in Safari on Mac.]
Unfortunately there's no good way to check if a field is focused from JavaScript, so we can't just conditionally do the blur/focus.
I've changed how Special:Search does its focus() of the input field; now instead of happening in raw immediate JS, it's done as a body onload handler -- this will run *after* mwsuggest.js does its setup, so by the time the field is forced focused, native autosuggest will be disabled.
There might conceivably be a race condition if the user manages to manually focus the field while the page is still loading. Not sure what we can do about that. :D
Bryan Tong Minh [Wed, 14 May 2008 15:11:48 +0000 (15:11 +0000)]
* Introduce LocalFile::selectFields similarly to Revision::SelectFields
* Introduce FileRepo::findBySha1
* Show duplicates on ImagePage
Aaron Schulz [Wed, 14 May 2008 13:28:46 +0000 (13:28 +0000)]
* Treat offset as a string, so paging works
* PG offsets are not just digits
Alexandre Emsenhuber [Wed, 14 May 2008 12:45:16 +0000 (12:45 +0000)]
Document new hook UserLoadFromSession and add a note to RELEASE-NOTES that AutoAuthenticate has been renamed
Bryan Tong Minh [Wed, 14 May 2008 11:52:59 +0000 (11:52 +0000)]
Add comments and explicit check for NS_IMAGE.
Daniel Friesen [Wed, 14 May 2008 11:17:54 +0000 (11:17 +0000)]
Revert 34558/34588. Use of an absolute path specified by __FILE__ breaks anyone using the symlink style of installation and relies on the assumption that the MediaWiki code is always located a directory above the LocalSettings.php file (Even Wikia doesn't follow this)
Victor Vasiliev [Wed, 14 May 2008 11:11:56 +0000 (11:11 +0000)]
Fix logical error
Daniel Friesen [Wed, 14 May 2008 10:25:09 +0000 (10:25 +0000)]
Support Array input in Title::getLocalURL and Title::getFullURL.
GlobalFunctions.php now has 2 new functions:
wfBuildQuery and wfParseQuery.
These are similar to the PHP http_build_query and parse_str for query handling. However they don't have the issues which those ones suffer from.
Siebrand Mazeland [Wed, 14 May 2008 06:50:45 +0000 (06:50 +0000)]
Localisation updates for core messages from Betawiki (2008-05-13 23:19 CEST)
* missed in earlier commit (strange)
Niklas Laxström [Wed, 14 May 2008 06:43:16 +0000 (06:43 +0000)]
* I totally blame SVN for this, it didn't show this change!
Meno25 [Wed, 14 May 2008 06:29:02 +0000 (06:29 +0000)]
Arabic localization updates
Niklas Laxström [Wed, 14 May 2008 05:18:27 +0000 (05:18 +0000)]
* Fix errors
Shinjiman [Wed, 14 May 2008 04:22:58 +0000 (04:22 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Tim Starling [Wed, 14 May 2008 00:39:09 +0000 (00:39 +0000)]
Removed debugging code.
Tim Starling [Wed, 14 May 2008 00:35:14 +0000 (00:35 +0000)]
DB schema change.
In CentralAuth (and related changes interface changes in Newuserlog and the core):
* Moved the AutoAuthenticate hook to User::loadFromSession(), to defer processing for longer and avoid unstub loops
* Undeprecated User::setID()
* Added partial support for new user log registration and IP-based blocking of automatically created accounts. Still needs the same support implemented in Special:Userlogin.
* Fixed all inappropriate uses of the term "DB name", changing them to "wiki" or "wiki ID". Renamed the relevant database fields.
* Refactored central session and cache support
Aaron Schulz [Tue, 13 May 2008 22:18:41 +0000 (22:18 +0000)]
log_id here too
Aaron Schulz [Tue, 13 May 2008 22:17:54 +0000 (22:17 +0000)]
* Totally redo index use.
* log_id is live
Aaron Schulz [Tue, 13 May 2008 21:31:30 +0000 (21:31 +0000)]
Silly typo
Brion Vibber [Tue, 13 May 2008 21:31:27 +0000 (21:31 +0000)]
Disable logevents until it works...
Currently produces very slow queries like the following:
SELECT /* ApiQueryLogEvents::execute SineBot */ log_type,log_action,log_timestamp,page_id,log_user,user_name,log_namespace,log_title,log_comment,log_params FROM `user`,`logging` FORCE INDEX (times) LEFT JOIN `page` ON ((log_namespace=page_namespace) AND (log_title=page_title)) WHERE (log_type != 'suppress') AND (user_id=log_user) AND log_deleted = '0' AND log_type = 'block' AND log_namespace = '2' AND log_title = '86.53.69.150' ORDER BY log_timestamp DESC LIMIT 2;
Siebrand Mazeland [Tue, 13 May 2008 21:31:12 +0000 (21:31 +0000)]
Localisation updates for core messages from Betawiki (2008-05-13 23:19 CEST)
Aaron Schulz [Tue, 13 May 2008 21:04:24 +0000 (21:04 +0000)]
Use 'api' querygroup
Aaron Schulz [Tue, 13 May 2008 21:03:57 +0000 (21:03 +0000)]
E_STRICT
Aaron Schulz [Tue, 13 May 2008 20:02:25 +0000 (20:02 +0000)]
Actually, page not always selected. Add this only when needed.
Aaron Schulz [Tue, 13 May 2008 19:58:12 +0000 (19:58 +0000)]
Actually specify page_id=rev_page to avoid cartesian join bringing the site down again
Raimond Spekking [Tue, 13 May 2008 19:05:13 +0000 (19:05 +0000)]
Localisation updates German
Rotem Liss [Tue, 13 May 2008 19:04:50 +0000 (19:04 +0000)]
Update.
Raimond Spekking [Tue, 13 May 2008 19:02:32 +0000 (19:02 +0000)]
* Localisation updates German
* Update messages.inc per r34751
Brion Vibber [Tue, 13 May 2008 18:59:18 +0000 (18:59 +0000)]
Cleanup r34661 (bug 14063 -- <label> for powersearch redirect checkbox)
Got rid of the old weird messages that combined localization with layout. Layout's now in nice clean code, with localization in nice clean messages. Yay!
Raimond Spekking [Tue, 13 May 2008 18:51:46 +0000 (18:51 +0000)]
Do not add an empty class=''
Brion Vibber [Tue, 13 May 2008 17:40:56 +0000 (17:40 +0000)]
* (bug 14111) Similar filename warning links now lead to correct page
A title object was getting created without the Image namespace, so lead to wrong links when used in fileexists-extension warning message. For consistency, using target name with namespace in both spots on that message now as well.
Aaron Schulz [Tue, 13 May 2008 16:06:31 +0000 (16:06 +0000)]
If no current revision, cache as dead link
Raimond Spekking [Tue, 13 May 2008 15:59:29 +0000 (15:59 +0000)]
Add CSS classes to allow easier hiding of elements.
Per request of the German screenreader project 'BIENE'
Roan Kattouw [Tue, 13 May 2008 14:56:51 +0000 (14:56 +0000)]
Oops
Roan Kattouw [Tue, 13 May 2008 14:41:35 +0000 (14:41 +0000)]
Actually this *should* be a LEFT JOIN, or we'll be dropping log entries
Roan Kattouw [Tue, 13 May 2008 14:01:40 +0000 (14:01 +0000)]
Force the pl_from/tl_from index here, as there are reasons to believe MySQL 4 selects the wrong index here (see bug 14102)
Aaron Schulz [Tue, 13 May 2008 13:24:52 +0000 (13:24 +0000)]
Remove unused tableNamesN() call
Raimond Spekking [Tue, 13 May 2008 11:28:07 +0000 (11:28 +0000)]
Localisation updates German
Roan Kattouw [Tue, 13 May 2008 10:53:12 +0000 (10:53 +0000)]
$token is a parameter, so it's set by extractRequestParams()
Roan Kattouw [Tue, 13 May 2008 10:51:12 +0000 (10:51 +0000)]
Technical, behind-the-scenes changes with no user-observed change don't belong in RELEASE-NOTES
Bryan Tong Minh [Tue, 13 May 2008 10:42:32 +0000 (10:42 +0000)]
ApiQueryRevisions now uses the Revision backend. This allows a more proper handling of rev_deleted. Also in case rev_size is filled on demand (bug 12188) there is only need to do this in one place.
Roan Kattouw [Tue, 13 May 2008 10:39:01 +0000 (10:39 +0000)]
(bug 14012) prop=templates filesorts under some conditions
Roan Kattouw [Tue, 13 May 2008 10:21:56 +0000 (10:21 +0000)]
Making INNER JOIN implicit
Bryan Tong Minh [Tue, 13 May 2008 09:03:23 +0000 (09:03 +0000)]
(bug 13829) Expose parse tree via action=expandtemplates
Aaron Schulz [Tue, 13 May 2008 06:39:55 +0000 (06:39 +0000)]
Comment
Niklas Laxström [Tue, 13 May 2008 06:20:03 +0000 (06:20 +0000)]
* Lets fix the other one too :)
Aaron Schulz [Tue, 13 May 2008 05:54:23 +0000 (05:54 +0000)]
Utilize r34708 tweak. Various performance tweaks. For results in one non-main namespace, use the new_name_timestamp index so it doesn't take 50 seconds doing "anon edits in NS_MEDIAWIKI"
Aran Dunkley [Tue, 13 May 2008 05:11:33 +0000 (05:11 +0000)]
Remove obsolete commen
Aaron Schulz [Tue, 13 May 2008 04:56:14 +0000 (04:56 +0000)]
Split of query from query text generation. This makes creating sql statements for UNIONs much easier.
Aaron Schulz [Tue, 13 May 2008 04:29:54 +0000 (04:29 +0000)]
INNER JOIN
Aaron Schulz [Tue, 13 May 2008 03:59:42 +0000 (03:59 +0000)]
* Fix undefined variable error
* Clean up query stuff
Aran Dunkley [Tue, 13 May 2008 00:03:05 +0000 (00:03 +0000)]
oops, interwiki inserts were commented out
Aran Dunkley [Tue, 13 May 2008 00:01:00 +0000 (00:01 +0000)]
remove licence etc to make same as the other DB includes
Aran Dunkley [Mon, 12 May 2008 23:59:06 +0000 (23:59 +0000)]
remove licence etc to make same as the other DB includes
Brion Vibber [Mon, 12 May 2008 23:46:42 +0000 (23:46 +0000)]
Revert r34619, r34622 and do it right. :)
* $extensionsList is a local variable, not a global, so there is no actual register_globals danger -- just annoying E_NOTICE spam.
* Setting $extensionList won't help with warnings about unset $extensionsList ;)
* Cleaner to set it in the fallback case near where it's set otherwise, rather than at the top of the function far, far away from its use
Brion Vibber [Mon, 12 May 2008 23:37:51 +0000 (23:37 +0000)]
Revert r34559 and fix r34542 -- include rightclickedit.js for 'edit on right click' pref, must have forgot to finish it up before commit :D
Brion Vibber [Mon, 12 May 2008 23:09:30 +0000 (23:09 +0000)]
Revert r34585: "Normalise also special page names (in addition to namespace)"
Unclear what it's meant to accomplish, but it appears to break at least the AJAX search on special page list. Unable to get it to jump through the list properly, probably due to being impossible to work with a Title object with an arbitrary name, so it's impossible to jump partway into the list.
Brion Vibber [Mon, 12 May 2008 22:01:44 +0000 (22:01 +0000)]
apply live hacks from wikimedia site:
* fix $wgDBadminuser/pass usage with new load balancer
* some test.wikipedia check... yay hardcoded crap :D
* hardcoded wikimedia PMTPA check, yay
Siebrand Mazeland [Mon, 12 May 2008 21:13:09 +0000 (21:13 +0000)]
Partial revert of r12145. Bug 12145 Kazakh message updates did not mention/motivate these changes.
Siebrand Mazeland [Mon, 12 May 2008 20:55:47 +0000 (20:55 +0000)]
Localisation updates for core messages from Betawiki (2008-05-12 22:45 CEST)
Alexandre Emsenhuber [Mon, 12 May 2008 20:30:57 +0000 (20:30 +0000)]
(bug 12145) Kazakh message updates
Bryan Tong Minh [Mon, 12 May 2008 17:47:51 +0000 (17:47 +0000)]
Add a link to viewvc
Leon Weber [Mon, 12 May 2008 15:44:12 +0000 (15:44 +0000)]
(bug 12145) Kazakh localisation updates. Patch 4894 by AlefZet
Huji [Mon, 12 May 2008 15:37:33 +0000 (15:37 +0000)]
* Adding/updating Persian translations
Rotem Liss [Mon, 12 May 2008 14:39:06 +0000 (14:39 +0000)]
Update.
Huji [Mon, 12 May 2008 14:28:09 +0000 (14:28 +0000)]
(bug 14063) Power search form missing <label> for redirects check
Bryan Tong Minh [Mon, 12 May 2008 14:12:51 +0000 (14:12 +0000)]
(bug 14093) Do 'sysop' => 'protect' magic in Title::isValidMoveOperation
Aryeh Gregor [Mon, 12 May 2008 13:56:21 +0000 (13:56 +0000)]
Tweaks to Special:ListGroupRights:
* Have the internally-used permission key in parentheses after the descriptive text, since a primary purpose of the page is for sysadmins' convenience.
* Make sure to use the word "rollback" in rollback-related messages -- that's the name of the button, after all.
* Adjust the wording of a couple of other messages so they sound better or are clearer.
Aaron Schulz [Mon, 12 May 2008 04:35:08 +0000 (04:35 +0000)]
* Add user_text index to filearchives (for renames at least)
* Remove useless, incomplete, deleted_user index
Shinjiman [Mon, 12 May 2008 02:08:14 +0000 (02:08 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Niklas Laxström [Sun, 11 May 2008 21:55:43 +0000 (21:55 +0000)]
* Forget the offset in the form also
Niklas Laxström [Sun, 11 May 2008 21:43:16 +0000 (21:43 +0000)]
* Code cleanup
Bryan Tong Minh [Sun, 11 May 2008 21:07:33 +0000 (21:07 +0000)]
Refactor SpecialEmailUser.php to split outputting from other stuff so that a to be written API module can easily use the existing code.